Skip to content

Removing getSchemaContext#357

Merged
aruniverse merged 6 commits intonextfrom
pankhur94/replacing-schemaContext
May 12, 2025
Merged

Removing getSchemaContext#357
aruniverse merged 6 commits intonextfrom
pankhur94/replacing-schemaContext

Conversation

@pankhur94
Copy link
Copy Markdown
Contributor

@pankhur94 pankhur94 commented May 3, 2025

iTwin/itwinjs-core#7977 added schemaContext to iModelConnection, no longer require it as a prop in the viewer

@pankhur94 pankhur94 changed the title Replacing getSchemaContext Replacing getSchemaContext in preparation for 5.0 May 3, 2025
Comment thread packages/modules/viewer-react/src/hooks/useUnifiedSelectionSync.tsx Outdated
Comment thread packages/apps/web-viewer-test/src/selectionStorage.ts Outdated
Comment thread packages/modules/viewer-react/src/types.ts
@aruniverse aruniverse marked this pull request as ready for review May 5, 2025 16:35
@aruniverse aruniverse requested review from hl662 and saskliutas May 5, 2025 16:35
…c.tsx

Co-authored-by: Arun George <11051042+aruniverse@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@hl662 hl662 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume the deprecation errors will be tackled in a separate PR?

@aruniverse aruniverse changed the title Replacing getSchemaContext in preparation for 5.0 Removing getSchemaContext May 12, 2025
@aruniverse aruniverse merged commit 1307243 into next May 12, 2025
2 checks passed
@aruniverse aruniverse deleted the pankhur94/replacing-schemaContext branch May 12, 2025 16:50
enablePerformanceMonitors={true}
selectionStorage={unifiedSelectionStorage}
getSchemaContext={getSchemaContext}
getSchemaContext={(iModel) => iModel.schemaContext}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this prop was removed from Viewer in this PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. that is right

]}
selectionStorage={unifiedSelectionStorage}
getSchemaContext={getSchemaContext}
getSchemaContext={(iModel) => iModel.schemaContext}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this prop was removed from Viewer in this PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes that is right.

@grigasp
Copy link
Copy Markdown
Member

grigasp commented May 13, 2025

Sorry I commented after merging the PR - noticed it just now :(

@aruniverse
Copy link
Copy Markdown
Member

aruniverse commented May 15, 2025

We needed to also register the ECSchemaRpcInterface by default with this PR, I forgot. I have added it in this commit, 959a5d2 (#342), directly on the next branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants